﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel; 
using System.Data;
using Stone.DataContracts;

namespace Stone.ServiceInterfaces.ServiceInterfaces
{
    [ServiceContract()]
    public interface IBasicService
    {
        #region 分校
        #region 查询分校
        [OperationContract]
        DepEntity getDepEntity(int id);

        [OperationContract]
        string[][] getDepinfo(int dep_id, string dep_name, string dep_address, string dep_phone);

        [OperationContract]
        DataTable getDepinfo4table(int dep_id, string dep_name, string dep_address, string dep_phone);

        [OperationContract]
        bool getEqualDep(string dep_name);
        #endregion
        #region 操作分校信息
        [OperationContract]
         void addDepInfo(DepEntity dep);
        [OperationContract]
         void updateDepinfo(DepEntity dep);
        [OperationContract]
         void deleteDepInfo(string Dep_name);
        #endregion
        #endregion

        #region 课程

        #region 查询课程信息 
        
        [OperationContract]
         string[][] getCourseInfo(int course_id, string course_name);

        [OperationContract]
         DataTable getCourseInfo4table(int course_id, string course_name);

        [OperationContract]
         bool getEqualCourse(string course_name);

        #endregion

        #region 操作课程信息

        [OperationContract]
         void addCourseInfo(string course_name);

        [OperationContract]
         void deleteCourseInfo(string course_name);

        [OperationContract]
         void updateCourseinfo(int id, string content);

        #endregion

        #endregion

        #region 年级

        #region 查询年级信息

        [OperationContract]
        string[][] getGradeInfo(int grade_id, string grade_name);

        [OperationContract]
         DataTable getGradeInfo4table(int grade_id, string grade_name);

        [OperationContract]
         bool getEqualGrade(string Grade_name);

        #endregion

        #region 操作年级信息

        [OperationContract]
         void addGradeInfo(string Grade_name);

        [OperationContract]
         void deleteGradeInfo(string Grade_name);

        [OperationContract]
         void updateGradeInfo(int id, string content);

        #endregion

        #endregion

        #region 权限

        [OperationContract]
         RightEntity RightEntity(int yh_right_id);

        [OperationContract]
         int Add(RightEntity re);

        [OperationContract]
         void Update(RightEntity re);

        [OperationContract]
         void Delete(int yh_right_id);

        [OperationContract]
         RightEntity GetModel(int yh_right_id);

        [OperationContract]
         DataTable GetList(string strWhere);

        #endregion

    }
}
